package com.leo.spring.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 类描述
 *
 * @author razor.liu
 * @version 1.0
 * @date 2021/11/5 11:12 下午
 */
@Component
public class BaseStrategy {

    @Autowired
    private AgeDAO ageDAO;

    protected Integer getAge(){
        return ageDAO.getAge();
    }
}
